# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=scalingo
pkgver=1.23.0
pkgrel=0
pkgdesc="Command-line client for Scalingo PaaS"
url="https://doc.scalingo.com/cli"
arch="all"
license="BSD-4-Clause"
makedepends="go"
source="https://github.com/Scalingo/cli/archive/$pkgver/cli-$pkgver.tar.gz"
options="chmod-clean"
builddir="$srcdir/cli-$pkgver"

export GOPATH="$srcdir"

build() {
	go build -trimpath -ldflags "-s -w" -o bin/scalingo ./scalingo
}

check() {
	go test -v ./...
}

package() {
	install -Dm755 bin/scalingo "$pkgdir"/usr/bin/scalingo
}

sha512sums="
b4d772557da16cd67854a88d95965e6e4eddf5988b367daff3de38e4c515619db2947a6144100ecd8e9e70d0f965c70e4a61446b3088a7946354a9b27ac0dc93  cli-1.23.0.tar.gz
"
